package leiheduixiang;

class Data {
    private int year;
    private int month;
    private int day;
    public static int eat;

    public void test(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
        test1();
    }

    public static void test1() {
        eat = 4;

    }

    @Override
    public String toString() {
        return "Data{" +
                "year=" + year +
                ", month=" + month +
                ", day=" + day +
                '}';
    }
}
